Liferay.Service.register("Liferay.Service.News", "fr.smile.liferay.portlet.news.service");

Liferay.Service.registerClass(
	Liferay.Service.News, "NewsEntry",
	{
		findUnread: true,
		countUnread: true,
		findAll: true,
		countAll: true,
		addEntry: true,
		updateEntry: true,
		deleteEntry: true
	}
);

Liferay.Service.registerClass(
	Liferay.Service.News, "NewsFlag",
	{
		addFlag: true,
		deleteFlag: true,
		deleteFlags: true,
		getFlag: true
	}
);